package com.ipay.dao;

import org.apache.ibatis.annotations.Param;

import com.ipay.entity.CashiersEntity;

import java.util.List;
import java.util.Map;

/**
 * 文件上传
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-03-25 12:13:26
 */
public interface CashiersDao extends BaseDao<CashiersEntity> {
	CashiersEntity findCashierByOpenid(@Param("openid") String openid,@Param("activateState") Integer activateState);
	int updateBatch(Long[] id);

	/**
	 * 统计使用  查询用户下对应的收款二维码信息
	 * @param cashiersEntity
	 * @return
	 */
	List<Map<String, Object>> findCodeDataGrouping(CashiersEntity cashiersEntity);
	
	/**
	 * 根据手机号码、状态查询收款员信息
	 * @param map
	 * @return
	 */
	CashiersEntity findCashierByMobile(Map<String, Object> map);
	
	/**
	 * 批量恢复已删除的收款员为正常状态
	 * @param ids
	 * @return
	 */
	int recoveryBatch(Long[] ids);
	
	CashiersEntity findCashierByParams(Map<String, Object> map);
	
	List<CashiersEntity> queryListByParams(Map<String,Object> map);
}
